package com.speedchina.common.rsa.conf;

import com.speedchina.common.rsa.service.RSAService;
import com.speedchina.common.rsa.service.impl.RSARedisService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.annotation.Resource;

/**
 * @author Winter
 */
@Configuration
@Slf4j
public class RSAConfig {
    @Resource
    RSARedisService rsaRedisService;
    @Bean
    RSAService rsaService(){
        log.info("init RSAService!");
       return rsaRedisService;
    }
}
